package com.gulimall.gulimallproduct.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gulimall.common.utils.PageUtils;
import com.gulimall.gulimallproduct.entity.SpuInfoDescEntity;
import com.gulimall.gulimallproduct.entity.SpuInfoEntity;
import com.gulimall.gulimallproduct.vo.SpuSaveVo;

import java.util.Map;

/**
 * spu信息
 *
 * @author niujiaxing
 * @email sunlightcs@gmail.com
 * @date 2025-05-08 21:33:56
 */
public interface SpuInfoService extends IService<SpuInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveSpuInfo(SpuSaveVo spuSaveVo);

    //保存spu的基本信息
    void saveBaseSpuInfo(SpuInfoEntity infoEntity);

    /**
     * 18、spu检索
     * @param params
     * @return
     */
    PageUtils queryPageByCondition(Map<String, Object> params);

    /**
     * 商品上架
     * @param spuId
     */
    void up(Long spuId);
    /**
     * 根据skuid找到spu的基本信息
     * @param skuId
     * @return
     */
    SpuInfoEntity getSpuInfoBySkuId(Long skuId);
}

